﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.WebPages.Html;
using System.ComponentModel.DataAnnotations;

namespace MVCNHibernate.Models
{
    public class EmployeeModel
    {
        public int EmpId { get; set; }

        [Required]
        [Display(Name="Employee Name")]
        public string EmpName { get; set; }

        [Required]
        [Display(Name = "Employee Address")]
        public string Address { get; set; }

        public int SelectedDeptId { get; set; }

        public List<SelectListItem> Depts { get; set; }

        public string btnClicked { get; set; }

        public string SuccessMsg { get; set; }

        public string ErrMsg { get; set; }
    }
}